package com.rmkj.trade.match.core;

import java.util.Date;

/**
 * Created by Administrator on 2019/1/8.
 * 完成交易的一组订单
 */
public class OrderPairs {
	String id;
	String goodsSymbol;
	String price;
	String lastPrice;
	double amount;
	Date time;

	private Order buyer;
	private Order seller;

	public String getId() {
		return id;
	}

	void setId(String id) {
		this.id = id;
	}

	public String getGoodsSymbol() {
		return goodsSymbol;
	}

	public void setGoodsSymbol(String goodsSymbol) {
		this.goodsSymbol = goodsSymbol;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getLastPrice() {
		return lastPrice;
	}

	void setLastPrice(String lastPrice) {
		this.lastPrice = lastPrice;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public Order getBuyer() {
		return buyer;
	}

	void setBuyer(Order buyer) {
		this.buyer = buyer;
	}

	public Order getSeller() {
		return seller;
	}

	void setSeller(Order seller) {
		this.seller = seller;
	}

	public Date getTime() {
		return time;
	}

	void setTime(Date time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "OrderPairs{" +
				"id='" + id + '\'' +
				", goodsSymbol='" + goodsSymbol + '\'' +
				", price='" + price + '\'' +
				", lastPrice='" + lastPrice + '\'' +
				", amount=" + amount +
				", time=" + time +
				", buyer=" + buyer +
				", seller=" + seller +
				'}';
	}
}
